<template>
  <div class="exchange">
    <div class="container">
      <div class="dota current">Dota2 库存</div>
      <div class="deposit">存入</div>
      <div class="select-all">全选</div>
      <div class="refresh">
        <img src="@/static/img/icon/refresh.png" />
        <p>刷新</p>
      </div>
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
export default defineComponent({
  name: 'Exchange',
  props: {},
  setup() {

  }
})
</script>

<style lang="scss" scoped>
.exchange {
  width: 100%;
  position: relative;
  padding: 0 18px;
  box-sizing: border-box;
  min-height: 100%;

  .container {
    top: 7rem;
    position: relative;
    width: 96%;
    margin: 0 auto 5rem auto;
    display: flex;
    flex-wrap: wrap;

    > div {
      cursor: pointer;
      position: absolute;
      color: #fff;
      top: -4rem;
      right: 1rem;
      width: 8rem;
      height: 2.4rem;
      border-radius: 0.3rem;
      text-align: center;
      line-height: 2.4rem;
      font-weight: 900;
    }
    .dota {
      left: 2rem;
      border: 1px solid #7668cb;
      &.current {
        background: #7668cb;
      }
    }

    .deposit {
      right: 23rem;
      background: #7668cb;
    }

    .select-all {
      right: 12rem;
      border: 1px solid #4f5175;
      background-color: #333451;
    }

    .refresh {
      right: 2rem;
      color: #989898;
      font-size: 1.2rem;
      display: flex;
      justify-content: center;
      align-items: center;

      img {
        width: 1.6rem;
        margin-right: 0.8rem;
      }
    }
  }
}
</style>